﻿using System;

namespace OurSite.Business.Picture
{
    public class PictureLight
    {
        public virtual Guid Id { get; set; }
        public virtual int PictureCode { get; set; }
        public virtual Guid EventId { get; set; }
        public virtual string ImagePath { get; set; }
        public virtual string Caption { get; set; }
        public virtual DateTime CreatedDate { get; set; }
        public virtual DateTime ModifiedDate { get; set; }
        public virtual bool IsListing { get; set; }
        public virtual bool IsFavorite { get; set; }
        public virtual int Order { get; set; }
        public virtual string FacebookId { get; set; }
        public virtual int Rating { get; set; }
        public virtual string Latitude { get; set; }
        public virtual string Longitude { get; set; }

        public PictureLight() {}

        public PictureLight(Picture pic)
        {
            Id = pic.Id;
            PictureCode = pic.PictureCode;
            EventId = pic.EventId;
            ImagePath = pic.ImagePath;
            Caption = pic.Caption;
            CreatedDate = pic.CreatedDate;
            ModifiedDate = pic.ModifiedDate;
            Order = pic.Order;
        }
    }
}
